.class Lorg/zeam/PagingView$1;
.super Ljava/lang/Object;
.source "PagingView.java"

# interfaces
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lorg/zeam/PagingView;->setPagingViews(Ljava/util/ArrayList;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lorg/zeam/PagingView;


# direct methods
.method constructor <init>(Lorg/zeam/PagingView;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lorg/zeam/PagingView$1;->this$0:Lorg/zeam/PagingView;

    .line 63
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 7
    .parameter "view"
    .parameter "motionEvent"

    .prologue
    const/4 v6, 0x0

    const/4 v5, 0x1

    .line 67
    iget-object v3, p0, Lorg/zeam/PagingView$1;->this$0:Lorg/zeam/PagingView;

    invoke-static {v3, p2}, Lorg/zeam/PagingView;->access$4(Lorg/zeam/PagingView;Landroid/view/MotionEvent;)V

    .line 68
    iget-object v3, p0, Lorg/zeam/PagingView$1;->this$0:Lorg/zeam/PagingView;

    invoke-static {v3}, Lorg/zeam/PagingView;->access$5(Lorg/zeam/PagingView;)Landroid/view/GestureDetector;

    move-result-object v3

    invoke-virtual {v3, p2}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v3

    if-eqz v3, :cond_0

    move v3, v5

    .line 81
    :goto_0
    return v3

    .line 71
    :cond_0
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v3

    if-eq v3, v5, :cond_1

    .line 72
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v3

    const/4 v4, 0x3

    if-ne v3, v4, :cond_2

    .line 74
    :cond_1
    iget-object v3, p0, Lorg/zeam/PagingView$1;->this$0:Lorg/zeam/PagingView;

    invoke-virtual {v3}, Lorg/zeam/PagingView;->getScrollX()I

    move-result v2

    .line 75
    .local v2, scrollX:I
    invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I

    move-result v0

    .line 76
    .local v0, pageViewWidth:I
    iget-object v3, p0, Lorg/zeam/PagingView$1;->this$0:Lorg/zeam/PagingView;

    div-int/lit8 v4, v0, 0x2

    add-int/2addr v4, v2

    div-int/2addr v4, v0

    invoke-static {v3, v4}, Lorg/zeam/PagingView;->access$3(Lorg/zeam/PagingView;I)V

    .line 77
    iget-object v3, p0, Lorg/zeam/PagingView$1;->this$0:Lorg/zeam/PagingView;

    invoke-static {v3}, Lorg/zeam/PagingView;->access$2(Lorg/zeam/PagingView;)I

    move-result v3

    mul-int v1, v3, v0

    .line 78
    .local v1, scrollTo:I
    iget-object v3, p0, Lorg/zeam/PagingView$1;->this$0:Lorg/zeam/PagingView;

    invoke-virtual {v3, v1, v6}, Lorg/zeam/PagingView;->smoothScrollTo(II)V

    move v3, v5

    .line 79
    goto :goto_0

    .end local v0           #pageViewWidth:I
    .end local v1           #scrollTo:I
    .end local v2           #scrollX:I
    :cond_2
    move v3, v6

    .line 81
    goto :goto_0
.end method
